<!DOCTYPE html>
<html>
<head>
    <title>{$category.name} {$category.seo_title} {$site_info.site_name|default=''}</title>
    <meta name="keywords" content="{$category.seo_keywords},{$site_info.site_seo_keywords|default=''}"/>
    <meta name="description" content="{$category.seo_description},{$site_info.site_seo_description|default=''}">
    <include file="public@head"/>
    <hook name="before_head_end"/>
</head>
<body class="body-white">

<div class="hd_xx">
    <a href="{:cmf_url('user/Profile/center')}" class="back">
        <img src="__TMPL__/public/assets/yanglao/images/i_6.png" alt="">
    </a>
    <div class="soso">
        <a href="#"></a>
        <input type="text" placeholder="搜索老人姓名／工单编号" name="keyword" id="keyword"/>
    </div>
    <a onclick="soso()" class="hd_dian">
        搜索
    </a>
</div>
<ul class="order_ul">
    <li class="active">
        <a href="#">待审核</a>
    </li>
    <li>
        <a href="#">已完成</a>
    </li>
    <li>
        <a href="#">已退款</a>
    </li>
    <li>
        <a href="#">已拒单</a>
    </li>
</ul>
<div class="xx_con block">
    <form action="" method="get" accept-charset="utf-8">

        <div>
            <php>
                
                $where= function($query)use($keyword){
                $user=cmf_get_user_list();
                if($keyword != ''){
                $query->whereRaw("post.post_title = '$keyword' or post.post_source = '$keyword'");
                }
                $query->where('post.gdstatus','=','待审核');
                
                $query->where('post.create_time','>=',0);
                $query->where('post.fwyid','in',$user);
                $query->where('post.post_type','=',5);
                
                };
                $page=[
                'list_rows'=>10,
                'next'=>'下一页',
                'prev'=>'上一页'
                ];
            </php>
            <portal:articlesgd item="vo" where="$where" order="post.create_time DESC" page="$page" relation="categories"
                categoryIds="$category.id" returnVarName="articles_data">
                <a href="{:cmf_url('portal/Article/detail',array('id'=>$vo['id'],'cid'=>$category['id']))}">
                <div class="order_bg">
                    <span class="order_span">{$vo.gdstatus}</span>
                
                </div>
                <div class="xx_div order_div">
                    <p>
                        <label>工单编号：</label>
                        <span>{$vo.post_source}</span>
                    </p>
                    <p>
                        <label>老人姓名：</label>
                        <span>{$vo.post_title}</span>
                    </p>
                    <p>
                        <label>老人电话：</label>
                        <span>{$vo.more.tel|default=''}</span>
                    </p>
                    <p>
                        <label>姓别：</label>
                        <span>{$vo.more.sex|default=''}</span>
                    </p>
                    <p>
                        <label>年龄：</label>
                        <span>{$vo.more.age|default=''}</span>
                    </p>
                    <p>
                        <label>家政地址：</label>
                        <span>{$vo.more.add|default=''}</span>
                    </p>
                    <p>
                        <label>服务类型：</label>
                        <span>{$vo.post_keywords|default=''}</span>
                    </p>
                    <p style="height:auto; ">
                        <label style="line-height:1rem; float: left;">服务时间</label>
                        <span style="line-height:0.6rem;">{$vo.more.gdstarttime|default=''}</span>
                    </p>
                </div>
                </a>
            </portal:articlesgd>
        </div>
        <ul class="pagination">
            <page />
        </ul>
       




    </form>

</div>

<div class="xx_con hide">
    <form action="" method="get" accept-charset="utf-8">
    
        <div>
            <php>
    
                $where= function($query)use($keyword){
                $user=cmf_get_user_list();
                if($keyword != ''){
                $query->whereRaw("post.post_title = '$keyword' or post.post_source = '$keyword'");
                }
                $query->where('post.gdstatus','=','已完成');
    
                $query->where('post.create_time','>=',0);
                $query->where('post.fwyid','in',$user);
                $query->where('post.post_type','=',5);
    
                };
                $page=[
                'list_rows'=>10,
                'next'=>'下一页',
                'prev'=>'上一页'
                ];
            </php>
            <portal:articlesgd item="vo" where="$where" order="post.create_time DESC" page="$page" relation="categories"
                categoryIds="$category.id" returnVarName="articles_data">
                <a href="{:cmf_url('portal/Article/detail',array('id'=>$vo['id'],'cid'=>$category['id']))}">
                    <div class="order_bg">
                        <span class="order_span">{$vo.gdstatus}</span>
    
                    </div>
                    <div class="xx_div order_div">
                        <p>
                            <label>工单编号：</label>
                            <span>{$vo.post_source}</span>
                        </p>
                        <p>
                            <label>老人姓名：</label>
                            <span>{$vo.post_title}</span>
                        </p>
                        <p>
                            <label>老人电话：</label>
                            <span>{$vo.more.tel|default=''}</span>
                        </p>
                        <p>
                            <label>姓别：</label>
                            <span>{$vo.more.sex|default=''}</span>
                        </p>
                        <p>
                            <label>年龄：</label>
                            <span>{$vo.more.age|default=''}</span>
                        </p>
                        <p>
                            <label>家政地址：</label>
                            <span>{$vo.more.add|default=''}</span>
                        </p>
                        <p>
                            <label>服务类型：</label>
                            <span>{$vo.post_keywords|default=''}</span>
                        </p>
                        <p style="height:auto; ">
                            <label style="line-height:1rem; float: left;">服务时间</label>
                            <span style="line-height:0.6rem;">{$vo.more.gdstarttime|default=''}</span>
                        </p>
                    </div>
                </a>
            </portal:articlesgd>
        </div>
        <ul class="pagination">
            <page />
        </ul>
    
    
    
    
    
    </form>
</div>
<div class="xx_con hide">
    <form action="" method="get" accept-charset="utf-8">
    
        <div>
            <php>
    
                $where= function($query)use($keyword){
                $user=cmf_get_user_list();
                if($keyword != ''){
                $query->whereRaw("post.post_title = '$keyword' or post.post_source = '$keyword'");
                }
                $query->where('post.gdstatus','=','已退款');
    
                $query->where('post.create_time','>=',0);
                $query->where('post.fwyid','in',$user);
                $query->where('post.post_type','=',5);
    
                };
                $page=[
                'list_rows'=>10,
                'next'=>'下一页',
                'prev'=>'上一页'
                ];
            </php>
            <portal:articlesgd item="vo" where="$where" order="post.create_time DESC" page="$page" relation="categories"
                categoryIds="$category.id" returnVarName="articles_data">
                <a href="{:cmf_url('portal/Article/detail',array('id'=>$vo['id'],'cid'=>$category['id']))}">
                    <div class="order_bg">
                        <span class="order_span">{$vo.gdstatus}</span>
    
                    </div>
                    <div class="xx_div order_div">
                        <p>
                            <label>工单编号：</label>
                            <span>{$vo.post_source}</span>
                        </p>
                        <p>
                            <label>老人姓名：</label>
                            <span>{$vo.post_title}</span>
                        </p>
                        <p>
                            <label>老人电话：</label>
                            <span>{$vo.more.tel|default=''}</span>
                        </p>
                        <p>
                            <label>姓别：</label>
                            <span>{$vo.more.sex|default=''}</span>
                        </p>
                        <p>
                            <label>年龄：</label>
                            <span>{$vo.more.age|default=''}</span>
                        </p>
                        <p>
                            <label>家政地址：</label>
                            <span>{$vo.more.add|default=''}</span>
                        </p>
                        <p>
                            <label>服务类型：</label>
                            <span>{$vo.post_keywords|default=''}</span>
                        </p>
                        <p style="height:auto; ">
                            <label style="line-height:1rem; float: left;">服务时间</label>
                            <span style="line-height:0.6rem;">{$vo.more.gdstarttime|default=''}</span>
                        </p>
                    </div>
                </a>
            </portal:articlesgd>
        </div>
        <ul class="pagination">
            <page />
        </ul>
    
    
    
    
    
    </form>
</div>
<div class="xx_con hide">
    <form action="" method="get" accept-charset="utf-8">
    
        <div>
            <php>
    
                $where= function($query)use($keyword){
                $user=cmf_get_user_list();
                if($keyword != ''){
                $query->whereRaw("post.post_title = '$keyword' or post.post_source = '$keyword'");
                }
                $query->where('post.gdstatus','=','已拒单');
    
                $query->where('post.create_time','>=',0);
                $query->where('post.fwyid','in',$user);
                $query->where('post.post_type','=',5);
    
                };
                $page=[
                'list_rows'=>10,
                'next'=>'下一页',
                'prev'=>'上一页'
                ];
            </php>
            <portal:articlesgd item="vo" where="$where" order="post.create_time DESC" page="$page" relation="categories"
                categoryIds="$category.id" returnVarName="articles_data">
                <a href="{:cmf_url('portal/Article/detail',array('id'=>$vo['id'],'cid'=>$category['id']))}">
                    <div class="order_bg">
                        <span class="order_span">{$vo.gdstatus}</span>
    
                    </div>
                    <div class="xx_div order_div">
                        <p>
                            <label>工单编号：</label>
                            <span>{$vo.post_source}</span>
                        </p>
                        <p>
                            <label>老人姓名：</label>
                            <span>{$vo.post_title}</span>
                        </p>
                        <p>
                            <label>老人电话：</label>
                            <span>{$vo.more.tel|default=''}</span>
                        </p>
                        <p>
                            <label>姓别：</label>
                            <span>{$vo.more.sex|default=''}</span>
                        </p>
                        <p>
                            <label>年龄：</label>
                            <span>{$vo.more.age|default=''}</span>
                        </p>
                        <p>
                            <label>家政地址：</label>
                            <span>{$vo.more.add|default=''}</span>
                        </p>
                        <p>
                            <label>服务类型：</label>
                            <span>{$vo.post_keywords|default=''}</span>
                        </p>
                        <p style="height:auto; ">
                            <label style="line-height:1rem; float: left;">服务时间</label>
                            <span style="line-height:0.6rem;">{$vo.more.gdstarttime|default=''}</span>
                        </p>
                    </div>
                </a>
            </portal:articlesgd>
        </div>
        <ul class="pagination">
            <page />
        </ul>
    
    
    
    
    
    </form>
</div>



<include file="public@scripts"/>

</body>
</html>
<script>
    tab();
    function tab() {
        var aLi = document.querySelectorAll(".order_ul li");
        var aBox = document.querySelectorAll('.xx_con');

        for (var i = 0; i < aLi.length; i++) {
            aLi[i].index = i;
            aLi[i].onclick = function () {
                for (var i = 0; i < aLi.length; i++) {
                    aLi[i].className = '';
                    aBox[i].className = 'xx_con hide';
                }
                aLi[this.index].className = 'active';
                aBox[this.index].className = 'xx_con block';
            }
        }
    }
    function soso(){
        var keyword = $('#keyword').val();
        if(keyword == ''){
            alert('请输入老人姓名／工单编号');
        } else {
             location.href = '/portal/article/orderlist.html?gdstatus=ALL&keyword=' + keyword;
        }
        
    }
</script>
